%\mode<article>{\usepackage{fullpage}}
%%% List of themes available:
%% Berlin,Montpellier
%\mode<presentation>{\usetheme{Montpellier}}
\usepackage[bahasa]{babel}
\usepackage{pgf}
%% Other options for algorithm:
% boxed, chapter, noend
\usepackage[boxed]{algorithm}
\usepackage{algorithmic}
\usepackage{xifthen}
\usepackage{graphicx}
\usepackage[answerdelayed]{exercise}
\usepackage{fancyvrb}
\usepackage{indentfirst}
\usepackage{setspace}
% 16cm x 23cm
\usepackage{a4wide}
\usepackage{makeidx}
\usepackage{appendix}
\usepackage{subfigure}
%\usepackage{wordlike}
\usepackage[top=2cm,left=2.5cm,right=2cm,bottom=2cm]{geometry}
\usepackage[all]{xy}

% newcommand(s)
%% Taken from Allen's How to Think Like a Computer Scientist series
% Note: the following command seems to cause problems for Acroreader
% on Windows, so for now I am overriding it.
\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}}
\renewcommand{\clearemptydoublepage}{\cleardoublepage}

%% newtheorem(s)
\newtheorem{Soal}{\thechapter}
\newtheorem{definisi}{\thechapter}
%% package xifthen
\newboolean{adaTIU}
\setboolean{adaTIU}{false}
%% package graphicx
\graphicspath{{images/}}
%% package setspace
%\singlespacing
\onehalfspacing
%\doublespacing

\makeindex
\begin{document}
  \mode*
  \begin{titlepage}
    \title{Algoritma \\ {\large Perancangan dan Analisis}}
    \author{Anung B. Ariwibowo \\ \texttt{barliant@gmail.com}}
    \date{Jurusan Teknik Informatika \\ Fakultas Teknologi Industri \\ Universitas Trisakti}
    \maketitle
  \end{titlepage}
  
  \setcounter{secnumdepth}{4}
  \setcounter{tocdepth}{3}
  \pagenumbering{roman}
  \setcounter{page}{1}
  
  \include{KataPengantar}
  \tableofcontents
  \clearemptydoublepage
  \listoffigures
  \clearemptydoublepage
  \addcontentsline{toc}{chapter}{Daftar Gambar}
  \listoftables
  \clearemptydoublepage
  \addcontentsline{toc}{chapter}{Daftar Tabel}
  \listofalgorithms
  \clearemptydoublepage
  \addcontentsline{toc}{chapter}{Daftar Algoritme}
  
  \newpage
  \pagenumbering{arabic}
  \setcounter{page}{1}
  
  \include{chPendahuluan}
  \include{chAlgoritma} % Algoritme dan Pemrograman
  %\include{chModul1} % Algoritma dan Pemrograman
  \include{chMathFoundations}
  \include{chAnalisaAlgoritma}
  %\include{chModul3} % Analisa Algoritme
  \include{chBahasaC}
  % \include{chBahasaPython}
  \include{chStrukturData}
  %\include{chModul2} % Permasalahan dan Struktur Data
  \include{chGraph}
  \include{chMatriks}
  \include{chBruteForce}
  %\include{chModul4} % Algoritme Brute Force
  \include{chDivideConquer}
  %\include{chModul5} % Algoritma Divide and Conquer
  \include{chTransformConquer}
  %\include{chModul7} % Algoritma Transform and Conquer}
  \include{chDecrease}
  %\include{chModul6} % Algoritma Decrease and Conquer
  \include{chSorting}
  \include{chGreedyTechnique}
  %\include{chModul8} % Teknik Greedy
  \include{chDynamicProgramming}
  %\include{chModul9} % Teknik Perencanaan Dinamis
  \include{chNPComplete}
  \clearemptydoublepage
  
  \pagestyle{myheadings}
  \bibliographystyle{alpha}
  \bibliography{anung}
  
  \printindex
  \addcontentsline{toc}{chapter}{Indeks}
\end{document}
